package action
{
	import flash.events.Event;
	
	import util.EvtDispatchHelper;
	
	/**
	 * Base Class for actions - currently only the Event Handling is done to
	 * add this functionality to it's subclasses. The EventHandling is delegated
	 * to util.EvtDispatchHelper. 
	 *  
	 * @author jbaeck
	 * 
	 */
	public class DefaultAction
	{
		protected var m_dispatcher:EvtDispatchHelper = EvtDispatchHelper.getInstance();
		
		public function DefaultAction()
		{
		}
		
		public function addEventListener(type:String, listener:Function, useCapture:Boolean=false, priority:int=0, useWeakReference:Boolean=false):void
		{
			m_dispatcher.addEventListener(type,listener,useCapture,priority,useWeakReference);
		}
		
		public function removeEventListener(type:String, listener:Function, useCapture:Boolean=false):void
		{
			m_dispatcher.removeEventListener(type,listener,useCapture);
		}
		
		public function dispatchEvent(event:Event):Boolean
		{
			return m_dispatcher.dispatchEvent(event);
		}


	}
}